/*
 ============================================================================
 Name		: fReaderDocument.cpp
 Author	  : wangchao
 Copyright   : Your copyright notice
 Description : CfReaderDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "fReaderAppUi.h"
#include "fReaderDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CfReaderDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CfReaderDocument* CfReaderDocument::NewL( CEikApplication& aApp )
{
    CfReaderDocument* self = NewLC( aApp );
    CleanupStack::Pop( self );
    return self;
}

// -----------------------------------------------------------------------------
// CfReaderDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CfReaderDocument* CfReaderDocument::NewLC( CEikApplication& aApp )
{
    CfReaderDocument* self = new ( ELeave ) CfReaderDocument( aApp );
    
    CleanupStack::PushL( self );
    self->ConstructL( );
    return self;
}

// -----------------------------------------------------------------------------
// CfReaderDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CfReaderDocument::ConstructL( )
{
    // No implementation required
}

// -----------------------------------------------------------------------------
// CfReaderDocument::CfReaderDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CfReaderDocument::CfReaderDocument( CEikApplication& aApp ) :
    CAknDocument( aApp )
{
    // No implementation required
}

// ---------------------------------------------------------------------------
// CfReaderDocument::~CfReaderDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CfReaderDocument::~CfReaderDocument( )
{
    // No implementation required
}

// ---------------------------------------------------------------------------
// CfReaderDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CfReaderDocument::CreateAppUiL( )
{
    // Create the application user interface, and return a pointer to it;
    // the framework takes ownership of this object
    return new ( ELeave ) CfReaderAppUi;
}

// End of File
